package com.tcdp.delegates;

import java.util.Date;
import java.util.List;

import com.tcdp.models.BlogPost;
import com.tcdp.models.BlogPostComment;
import com.tcdp.services.BlogPostCommentService;

public class BlogPostCommentDelegate extends AbstractDelegate {

	private BlogPostComment commentObject;

	public BlogPostCommentDelegate() {
		super();
		this.commentObject = new BlogPostComment();
	}

	public BlogPostCommentDelegate(BlogPostComment commentObject) {
		super();
		this.commentObject = commentObject;
	}

	public BlogPostComment getCommentObject() {
		return commentObject;
	}

	public void setCommentObject(BlogPostComment commentObject) {
		this.commentObject = commentObject;
	}

	public int getBlogPostCommentId() {
		return commentObject.getBlogPostCommentId();
	}

	public void setBlogPostCommentId(int blogPostCommentId) {
		commentObject.setBlogPostCommentId(blogPostCommentId);
	}

	public String getBlogPostCommentContent() {
		return commentObject.getBlogPostCommentContent();
	}

	public void setBlogPostCommentContent(String blogPostCommentContent) {
		commentObject.setBlogPostCommentContent(blogPostCommentContent);
	}

	public Date getBlogPostCommentDate() {
		return commentObject.getBlogPostCommentDate();
	}

	public void setBlogPostCommentDate(Date blogPostCommentDate) {
		commentObject.setBlogPostCommentDate(blogPostCommentDate);
	}

	public String getBlogPostCommentEadd() {
		return commentObject.getBlogPostCommentEadd();
	}

	public void setBlogPostCommentEadd(String blogPostCommentEadd) {
		commentObject.setBlogPostCommentEadd(blogPostCommentEadd);
	}

	public String getBlogPostCommentName() {
		return commentObject.getBlogPostCommentName();
	}

	public void setBlogPostCommentName(String blogPostCommentName) {
		commentObject.setBlogPostCommentName(blogPostCommentName);
	}

	public BlogPostComment getBlogPostCommentParent() {
		return commentObject.getBlogPostCommentParent();
	}

	public void setBlogPostCommentParent(BlogPostComment blogPostCommentParent) {
		commentObject.setBlogPostCommentParent(blogPostCommentParent);
	}

	public List<BlogPostCommentDelegate> getBlogPostCommentChildren() {
		return BlogPostCommentService.convertToCommentDelegates(commentObject.getBlogPostCommentChildren());
	}

	public void setBlogPostCommentChildren(
			List<BlogPostCommentDelegate> blogPostCommentChildren) {
		commentObject.setBlogPostCommentChildren(BlogPostCommentService.convertToCommentObjects(blogPostCommentChildren));
	}

	public BlogPost getBlogPost() {
		return commentObject.getBlogPost();
	}

	public void setBlogPost(BlogPost blogPost) {
		commentObject.setBlogPost(blogPost);
	}

	public int hashCode() {
		return commentObject.hashCode();
	}

	public boolean equals(Object obj) {
		return commentObject.equals(obj);
	}

	public String toString() {
		return commentObject.toString();
	}
	
}
